// 2013-7-29下午06:16:44  net.betou.trade.main.manager.NoticeMng.java

package net.betou.trade.main.manager;

import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.Notice;
import net.betou.trade.entity.main.User;

/**
 * 
 * @author 叶装装
 */
public interface NoticeMng{

	public Notice getLastNotice( );
	
	public Notice save( Notice bean, AgentAndAdmins admin, Integer [ ] mxGroups, Integer [ ] smsGroups );
	
	public Notice update( Notice bean, Integer [ ] mxGroups, Integer [ ] smsGroups );
	
	public Notice deleteById( Integer id );
	
	public Notice [ ] deleteByIds( Integer [ ] ids );
	
	public Notice findById( Integer id );
	
	public Notice findMyNotice( Integer id, Integer selfId, Boolean system );
	
	public Pagination getPage( AgentAndAdmins admin, String searchProperty, String searchValue, String orderProperty, String orderDirection, String filterStatus, int pageNo, int pageSize );
	
	public Pagination getPage(  User user, int pageNo, int pageSize );
}
